package com.qf;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author lyx
 * @date 2022/7/12 15:47
 */
@SpringBootApplication
@EnableDistributedTransaction
@MapperScan("com.qf.mappper")
public class ServiceAApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceAApplication.class,args);
    }

    /**
     * 注入远程调用对象
     */
    @Bean
    public RestTemplate restTemplate(){
        return  new RestTemplate();
    }
}
